import React from 'react'

export default function EventHandle() {
  function handleClick1(e){
    console.log('事件处理2',e);
    handleClick2(30,50)
  }
  const handleClick2=(arg1,arg2)=>{
    console.log('事件处理3',arg1,arg2);
  }
  return (
    <div>
        <h2>事件处理</h2>
        <div>
            <button onClick={()=>console.log('事件处理1')}>绑定1</button>
            <button onClick={handleClick1}>绑定2</button>
            <button onClick={(e)=>handleClick2(10,e)}>绑定3</button>
        </div>
    </div>
  )
}
